package runesim.profileserv;
import runesim.shared.Configuration;
import runesim.shared.ConnectionManager;
import runesim.shared.Prompt;

/**
 * Holds the main entry point to the login server. Login server manages profiles
 * and authentication.
 * 
 * @author Ben
 */
public class ProfileServer {
	
	public static void main(String[] arguments) {
		// Load configuration values from INI file.
		Configuration.load();
		Prompt.println("Loaded configuration");
		
		// Start the Connection Manager.
		// Notice port offset: node port + 1
		new ConnectionManager(Integer.parseInt(Configuration.get().getProperty("node_port", "43594")) + 1).bind(new NodeConnectionHandle());
	}
}